/ Assembly List / LJCNetCommon / CodeTokenizer / GetToken

Namespace - LJCNetCommon


Parameters
tokenIndex - The token index.

Returns

The token value.

Syntax

C#
public String GetToken(Int16 tokenIndex)

Gets the token at the specified token index. (E)

Example

C#
using LJCNetCommon;
        
var tokenizer = new CodeTokenizer();
string text = " string text = " // This is a comment.";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);
// Value token = "//".

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.